<template>
    <div class="back">
        <van-icon name="arrow-left"
                size="0.8rem"
                @click="goback()" />
        <slot></slot> 
    </div>
</template>
<script>
export default {
    methods: {
        goback () {
      this.$router.go(-1)
    },
    }
}
</script>
<style lang="less" scoped>
.back{
    width: 100%;
    padding:0.5rem 0.5rem 0.5rem 0.2rem;
    display: flex;
    align-items: center;
}
</style>